package com.pureut.system.api;

import com.pureut.common.core.constant.ServiceNameConstants;
import com.pureut.common.core.domain.R;
import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: YSL
 * @Date: 2023/1/12 16:19
 * @Desc: 单据配置feign
 */
@FeignClient(contextId = "systemDocumentFeignService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface SystemDocumentFeignService {

    /**
     * 通过配置单据查询单据信息
     * @param docConfig 配置单据
     * @return 结束
     */
    @GetMapping("/document/docConfigById/{docConfig}")
    public AjaxResult getInfoDocumentConfigById(@PathVariable("docConfig") Long docConfig);

}
